package com.zhanqiao.controller;

import com.zhanqiao.service.SelectVipService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;
import java.util.Scanner;

@WebServlet("/deletevip.action")
public class DeleteVipController extends HttpServlet {
    private SelectVipService selectVipService = new SelectVipService();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String vid = req.getParameter("vid");
        try {
            int i = selectVipService.deleteService(Integer.parseInt(vid));
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
